<?php
/**
 * Created by PhpStorm.
 * User: boye009
 * Date: 2016/3/15
 * Time: 18:05
 */

namespace Webview\Controller;


use Admin\Api\MessageApi;
use Admin\Api\PostApi;
use Admin\Api\VPostInfoApi;
use Common\Api\AccountApi;
use Shop\Api\MemberConfigApi;
use Shop\Api\RedEnvelopeApi;
use Ucenter\Api\MemberApi;
use Ucenter\Api\MemberExpApi;
use Webview\Api\SigninApi;

class IndexController extends WebViewController{

    protected function _initialize(){
        parent::_initialize();
    }

    public function mengbi(){
        $this->assignTitle('我的萌币');
        $map = [
            'uid' => $this->uid
        ];
        $result = apiCall(MemberApi::GET_INFO,[$map]);
        if($result['status']){
            $score = $result['info']['score'];
        }else{
            exit($result['info']);
        }
        $this->assign('score',$score);
        $this->display();
    }

}